/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package org.ipti.br.tag.bean.dataManipulation;

import org.ipti.br.tag.entity.Human;
import org.ipti.br.tag.entity.WeightAndHeight;

/**
 *
 * @author FelipeMSX
 */
public class WeightAndHeightAuxiliator implements Comparable<WeightAndHeightAuxiliator> {
    private Human human;
    private WeightAndHeight weightAndHeight;
    private boolean notExistsDataBase;
    
    public WeightAndHeightAuxiliator( Human human, WeightAndHeight measure, boolean notExistsDataBase){
        this.human = human;
        this.weightAndHeight = measure;
        this.notExistsDataBase = notExistsDataBase;
    }
    
    public WeightAndHeightAuxiliator(){
        
    }
        
    @Override
    public int compareTo(WeightAndHeightAuxiliator o) {
       return (this.getHuman().getName().toLowerCase()).compareTo( o.getHuman().getName().toLowerCase());
    }
   

    public Human getHuman() {
        return human;
    }

    public void setHuman(Human human) {
        this.human = human;
    }

    public WeightAndHeight getWeightAndHeight() {
        return weightAndHeight;
    }

    public void setWeightAndHeight(WeightAndHeight measure) {
        this.weightAndHeight = measure;
    }

    public boolean isNotExistsDataBase() {
        return notExistsDataBase;
    }

    public void setNotExistsDataBase(boolean notExistsDataBase) {
        this.notExistsDataBase = notExistsDataBase;
    } 
}
